<?php

    namespace yaliSDK\message;

    class Code {

        // ##基础
        static public $ERROR = -01000;// 操作行为
        static public $SUCCESS = 01000;// 操作行为
        static public $VALIDATE_PASS = 01001;// 验证成功

        //##购票
        static public $TICKET_ACTIVITY_START = 11000;// 购票开始
        static public $TICKET_ACTIVITY_NOT_START = -11000;// 抢票活动未开始
        static public $TICKET_ACTIVITY_END = -11001;// 抢票活动结束

        static public $EXCHANGE_TICKET_START = 11001;// 兑换开始
        static public $EXCHANGE_TICKET_NOT_START = -11002;// 兑换未开始
        static public $EXCHANGE_TICKET_END = -11003;// 兑换结束
        static public $EXCHANGER_STAFF_BIND =-11004;// 不能重复绑定
        //
        static public $ALL_TICKET_IS_INITIAL = 10001;// 已初始路线票

        static public $TICKET_BIND_SUCCESS = 10002;//绑定成功
        static public $EORROR_STICKET_NO_STOCK = -10000;// 票没库存
        static public $EORROR_STICKET_BUY_QUANTIY_NO_ZERO = -10002;// 购票不能为0
        static public $EORROR_STICKET_BUY_QUANTIY_MAX = -10003;// 购票超过限制
        static public $TICKET_TYPE_ERROR = -10004;// 票类型错误

        static public $ALL_TICKET_NOT_INITIAL = -10006;// 没初始路线票
        static public $CUSTOMER_TICKET_MAX = -10007;// 客户的最大数量
        // ##核销
        static public $TICKET_NOT_EXIST = -10008;// 票不存在
        static public $TICKET_USED_NOT_BIND = -10009;//未绑定信息
        static public $TICKET_NOT_BIND_MAX = -10010;//一个用户只能绑定1张票
        static public $TICKET_NOT_MORE_USE = -10011;//票已兑换，不能多次操作
        static public $EXCHANGER_ID_ERROR = -10012;//核销密码错误
        static public $EXCHANGER_ID_NO_BIND = -10013;
        static public $EXCHANGER_ROUTE_ERROR = -10014;
        static public $EXCHANGER_BIND_OTHER = -10015;//密码已使用
        // ##订单

        static public $SUCCESS_SAVE_ORDER = 20000;// 下单成功
        static public $ERROR_SAVE_ORDER = -20000;// 下单失败
        static public $ERROR_EXISTED_ORDER = -20001;// 下单失败
        public static $ORDER_STATUS_WAIT_PAY = 20100;//待支付
        public static $ORDER_STATUS_PAYED = 20101;//已支付
        public static $ORDER_STATUS_CANCEL = 20102;//已取消
        public static $ORDER_STATUS_REFUND = 20105;//已退款
        public static $ORDER_PAY_ERROR = -20002;// 支付失败
        public static $INVALIDE_ORDER = -20003;// 支付失败

        public static $INVALIDE_ORDER_NO = -20004;// 支付失败
        public static $INVALIDE_ORDER_WAIT = -20005;// 支付失败
        public static $INVALIDE_ORDER_CANCEL = -20006;// 支付失败


        // ##顾客
        static public $ERROR_CUSTOMER_NO = -30006;// 无顾客信息
        static public $CUSTOMER_SAVE_ERROR = -30007;//用户信息修改失败
        static public $CUSTOMER_SAVE_SUCCESS = 30007;//用户信息修改成功
        static public $CUSTOMER_NOT_EXIST = -30008;//用户信息不存在
        static public $CUSTOMER_PARAMS_ERROR = -30009;//用户参数缺失
        static public $CUSTOMER_NOT_MODIFY = -30010;//用户参数缺失

        // ##路线
        static public $EORROR_ROUTE_NO_EXIST = -40003;// 路线不存在

        static public $DB_ERROR = 0;
        static public $DB_SUCCESS = 1;
        static public $DB_EXISTED = -1;

        static public $API_PARAMS_NULL = -60000;// 参数为空

        // ##签到
        static public $SUCCESS_CUSTOMER_SIGN = 70000;// 成功签到
        static public $ERROR_CUSTOMER_SIGN = -70000;// 签到失败
        static public $ALREADY_SIGN = -70001;// 已签到
        static public $NO_SIGN = -70002;//
        static public $NO_MEDAL = -70003;//签到失败
        static public $ALREADY_AWARD = -70004;//已领取奖品
        static public $NO_GET_AWARD = -70005;//没有该奖品点
        static public $SUCCESS_GET_AWARD = 70001;//中奖了
        static public $NO_MEDAL_STATE = -70006;//其他线路红包点不存在
        static public $NO_HAVE_MEDAL_STATE = -70007;//红包点不存在，初始化失败
        static public $HAVING_BIND_INFO = 70008;//已绑定徒步者
        static public $NO_BIND_INFO = -70009;//未绑定徒步者
        static public $TICKET_BIND = -70010;//该票码已使用
        static public $ERROR_BIND_INFO = -70011;//绑定信息填写有误
        static public $ERROR_BIND_Ticket = -70012;//报名码未绑定
        static public $ERROR_NO_Open = -70013;//该票码未绑定身份
        static public $ERROR_STATION_Over = -70014;//该领奖点已结束
        static public $ERROR_NO_START = -70015;///活动未开始
        static public $ERROR_PASSWORD = -70016;///活动未开始


        // ## 授权
        static public $WX_AUTH_SESSION = -80000;//微信授权session_key获取失败
        static public $WX_USERINFO_ERROR = -80001;//微信授权信息获取失败
        static public $WX_AUTH_PARAMS = -80002;//微信授权参数缺失
        static public $WX_AUTH_SUCCESS = 80003;//微信授权成功
        static public $WX_DECRY_ERROR = -80004;//微信解密失败

        static public $WX_TEMPLATEMESS_SUCCESS = 80004;//微信模板信息发送成功
        static public $WX_TEMPLATEMESS_ERROR = -80004; //微信模板信息发送失败
        static public $WX_QRCODE_ERROR = -80005; //微信二维码创建失败
        static public $WX_PATH_ERROR = -80006; //微信二维码路径缺失
        static public $WX_QRCODE_SUCCESS = 80005; //微信二维码创建成功

        //##后台
        static public $ADMIN_LOGIN_ERROR = -90000; //用户登录信息错误
        static public $ADMIN_LOGIN_SUCCESS = 90000; //用户登录成功

        //##员工
        static public $STAFF_INFO_ERROR = -100000; //员工信息错误

        //##验证码
        static public $VERIFY_CODE_ERROR = -110000; //验证码错误
        static public $NEED_SEND_CODE_ERROR = -110001;// 请先获取验证码
        static public $VERIFY_CODE_SUCCESS = 110000; //验证通过


        static public $IS_LOCK = -120000; //程序已被加锁

        static public $SALLOUT = -120001;// 已售罄，请选择纪念版。
        static public $SALLOUT_2 = -120002;// 已售罄，请选择纪念版。

    }